package com.example.config;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @author mingtian
 * @version V1.0
 * @Description 导入选择器 ImportSelector，指定需要注入到 Spring 容器中的类
 * @date 2019/12/9 11:05
 */
public class MyImportSelector implements ImportSelector {
    /**
     * @param annotationMetadata 注解信息
     * @return
     */
    public String[] selectImports(AnnotationMetadata annotationMetadata) {
        return new String[]{"com.example.entity.member"};
    }
}
